import request from '../utils/request'
import requestwb from '../utils/webPageRequest'

export const create = (data) => {
  return request({
    url: `token/create`,
    method: "post",
    param: data
  })
}
export const refresh = (data) => {
  return request({
    url: `token/refresh`,
    method: "post",
    param: data
  })
}
export const rightsInfo = (data) => {
  return request({
    url: `rights/info`,
    method: "post",
    param: data
  })
}

/**
 * 保存授权信息到1688项目
 */
export const saveTo1688Data = (data) => {
  return request({
    baseURL: process.env.FORM_1688_BASE_URL,
    url: `/dly/company/bindShopByDly`,
    method: "post",
    data,
  })
}